export interface Submission {
  id: string;
  siteName: string;
  siteUrl: string;
  category: string;
  description: string;
  email: string;
  tags?: string;
  status: number;
  remark?: string;
  createdAt: string;
  updatedAt: string;
}

export interface CreateSubmissionRequest {
  siteName: string;
  siteUrl: string;
  category: string;
  description: string;
  email: string;
  tags?: string;
}

export interface UpdateSubmissionRequest {
  id: string;
  status: number;
  remark?: string;
}

export enum SubmissionStatus {
  PENDING = 0,
  APPROVED = 1,
  REJECTED = 2,
}

export const SubmissionStatusMap = {
  [SubmissionStatus.PENDING]: '待审核',
  [SubmissionStatus.APPROVED]: '已通过',
  [SubmissionStatus.REJECTED]: '已拒绝',
};

export const SubmissionCategoryMap = {
  'ai-writing': 'AI写作',
  'ai-image': 'AI绘画',
  'ai-video': 'AI音视频',
  'ai-code': 'AI代码',
  'ai-office': 'AI办公',
  'design': '设计工具',
  'other': '其他',
};